home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / DRVLIB.NIC / CTE22 / DUAL.INF < prev    next >
INI File  |  1996-07-31  |  33KB  |  1,225 lines

  1. ;***********************************************************************
  2. ;
  3. ; OEMSEUP.INF
  4. ;
  5. ;       E22XX network card and driver SETUP INF file.
  6. ;   For Dual chip card only!!!!
  7. ; History:
  8. ; v1.01 Release with help
  9. ;v1.02  Uses separate oemsetup.inf files for Single/Dual chip cards
  10. ;v1.03  Fixed Help File Bug -- Did not always load properly
  11. ;***********************************************************************
  12.  
  13. [Identification]
  14.     OptionType = NetAdapter
  15.  
  16. [PlatformsSupported]
  17.     ISA
  18.     EISA
  19.  
  20. [Options]
  21.     E22XX
  22.  
  23. ;***********************************************************************
  24. ; CONSTANTS FOR USING DIALOGS
  25. ;***********************************************************************
  26.  
  27. [FileConstants]
  28.  
  29.  
  30. GenericInfVersion  = " v1.03"
  31. GenericAdapterName = "Cabletron E22XX (9000839) Adapter"
  32. GenericDriverName  = "Cabletron E22XX Driver"
  33. GenericSysName     = "E22N3.SYS"
  34. GenericName        = "E22XX"
  35.  
  36. ;
  37. ;  File names, etc.
  38. ;
  39. UtilityInf      = "UTILITY.INF"
  40. ParamInf        = "NCPARAM.INF"
  41. subroutineinf   = "SUBROUTN.INF"
  42. SoftwareType    = "driver"
  43. Exit_Code       = 0
  44.  
  45. ;
  46. ; EventLog Message File
  47. ;
  48. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  49. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  50.  
  51. ; Product Info
  52. ;
  53. Manufacturer    = "Microsoft"
  54. ProductMajorVersion     = "3"
  55. ProductMinorVersion     = "1"
  56. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  57.  
  58. ;
  59. ; Software
  60. ;
  61. ProductSoftwareName     = "E22XX"
  62. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(GenericSysName)
  63. NetRuleSoftwareType     = "E22N3Sys ndisDriver E22XXDriver"
  64.  
  65. NetRuleSoftwareUse      = $(SoftwareType)
  66. NetRuleSoftwareBindForm = """E22N3Sys"" yes no container"
  67.  
  68. NetRuleSoftwareClass    = {"E22XXDriver basic"}
  69. NetRuleSoftwareBindable = {"E22XXDriver E22XXAdapter non exclusive 100"}
  70. ;
  71. ; Hardware
  72. ;
  73. ProductHardwareName        = "E22XX"
  74. NetRuleHardwareType        = "E22XX E22XXAdapter"
  75. NetRuleHardwareBindForm    = " yes yes container"
  76. NetRuleHardwareClass       = {"E22XXAdapter basic"}
  77.  
  78. ;
  79. ; Registry Key
  80. ;
  81. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  82. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  83.  
  84. [GeneralConstants]
  85. ;
  86. ;  Program flow control variables.
  87. ;
  88. from      = ""
  89. to        = ""
  90. ;
  91. ;  Return codes; Exit_Code is set to one of these
  92. ;
  93. ExitCodeOk     = 0
  94. ExitCodeCancel = 1
  95. ExitCodeFatal  = 2
  96.  
  97. KeyNull         = ""
  98. MAXIMUM_ALLOWED   = 33554432
  99. RegistryErrorIndex = NO_ERROR
  100. KeyProduct      = ""
  101. KeyParameters   = ""
  102.  
  103. TRUE            = 1
  104. FALSE           = 0
  105. NoTitle            = 0
  106.  
  107. ExitState   = "Active"
  108. OldVersionExisted = $(FALSE)
  109.  
  110. DriverPath      = $(!STF_NTPATH)\drivers
  111.  
  112. [date]
  113.     ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour,
  114.     ; Minute, Second }
  115.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  116.  
  117. [Identify]
  118.     ;
  119.     ;
  120.     read-syms Identification
  121.  
  122.     set Status     = STATUS_SUCCESSFUL
  123.     set Identifier = $(OptionType)
  124.     set Media      = #("Source Media Descriptions", 1, 1)
  125.  
  126.     Return $(Status) $(Identifier) $(Media)
  127.  
  128. [ReturnOptions]
  129.     ;
  130.     ;
  131.     set Status        = STATUS_FAILED
  132.     set OptionList     = {}
  133.     set OptionTextList = {}
  134.  
  135.     ;
  136.     ; Check if the language requested is supported
  137.     ;
  138.     set LanguageList = ^(LanguagesSupported, 1)
  139.     Ifcontains(i) $($0) in $(LanguageList)
  140.     ;
  141.     ; Check if the platforms requested is supported
  142.     ;
  143.     ifstr(i) $($1) == ""
  144.             goto returnoptions
  145.     endif
  146.  
  147.     set PlatformList = ^(PlatformsSupported, 1)
  148.     Ifcontains(i) $($1) in $(PlatformList)
  149.             goto returnoptions
  150.     else
  151.             set Status = STATUS_NOTSUPPORTED
  152.             goto finish_ReturnOptions
  153.     endif
  154.     else
  155.         set Status = STATUS_NOLANGUAGE
  156.         goto finish_ReturnOptions
  157.     endif
  158.  
  159.     ;
  160.     ; form a list of all the options and another of the text representing
  161.     ;
  162.  
  163. returnoptions = +
  164.     set OptionList     = ^(Options, 1)
  165.     set OptionTextList = ^(OptionsText$($0), 1)
  166.     set Status         = STATUS_SUCCESSFUL
  167.  
  168. finish_ReturnOptions = +
  169.     Return $(Status) $(OptionList) $(OptionTextList)
  170.  
  171. [InstallOption]
  172.     ;
  173.     ; Set default values for
  174.     ;
  175.     set Status   = STATUS_FAILED
  176.     ;
  177.     ; extract parameters
  178.     ;
  179.     set Option   = $($1)
  180.     set SrcDir   = $($2)
  181.     set AddCopy  = $($3)
  182.     set DoCopy   = $($4)
  183.     set DoConfig = $($5)
  184.  
  185.     ;
  186.     ; Check if the language requested is supported
  187.     ;
  188.     set LanguageList = ^(LanguagesSupported, 1)
  189.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  190.     Return STATUS_NOLANGUAGE
  191.     endif
  192.  
  193.     set-subst LF = "\n"
  194.  
  195.     read-syms GeneralConstants
  196.     read-syms FileConstants
  197.  
  198.     read-syms DialogConstants$(!STF_LANGUAGE)
  199.     ifstr(i) $(!NTN_Origination) == "NCPA"
  200.     set Continue = $(OK)
  201.     endif
  202.     read-syms FileConstants$(!STF_LANGUAGE)
  203.  
  204.     detect date
  205.  
  206.     set-title  $(FunctionTitle)
  207.  
  208.     set to   = Begin
  209.     set from = Begin
  210. ;
  211. ;  Assume all is well.
  212. ;
  213.     set CommonStatus = STATUS_SUCCESSFUL
  214.  
  215.     EndWait
  216.  
  217. ;
  218. ;   Set up the operation-mode-based variables and gaily welcome
  219. ;   the user.  If the "install mode" variable is improperly set,
  220. ;   assume this is a new installation.
  221. ;
  222.  
  223. Begin = +
  224.     SetHelpFile "E22.hlp" 0 0
  225.     Set ActivateDetection = FALSE
  226.  
  227.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  228.     set StartLabel = removeadapter
  229.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  230.     set StartLabel = UpgradeSoftware
  231.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  232.     set StartLabel = bindingadapter
  233.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  234. ;        set ActivateDetection = TRUE
  235.     set StartLabel = configureadapter
  236.     ;
  237.     ;   You cannot config the software component
  238.     ;
  239.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  240.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  241.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  242.         goto ShellCodeError
  243.         endif
  244.         set Error = $($R0)
  245.         set from = end
  246.         set to = end
  247.         goto nonfatalinfo
  248.     endif
  249.     else
  250. ;        set ActivateDetection = TRUE
  251.     set StartLabel = installadapter
  252.     set OEM_ABANDON_OPTIONS = {}
  253.     set OEM_ABANDON_SOFTWARE = FALSE
  254.     set OEM_ABANDON_ON = TRUE
  255.     endif
  256.  
  257.  
  258.  
  259.     ;  set the default values
  260.  
  261.     ; IOBase Address = 0x2A0
  262.     set IOBaseAddrValue1 = *($(IOBaseAddrList1), 6)
  263.  
  264.     ; IOBase Address = 0x2C0
  265.     set IOBaseAddrValue2 = *($(IOBaseAddrList2), 7)
  266.  
  267.     ; DMA = 5
  268.     ;LRW set DMAValue = *($(DMAList), 1)
  269.  
  270.     set CardTypeValue = 0
  271.  
  272.     Set from = $(fatal)
  273.     Set to = $(fatal)
  274.     Goto $(StartLabel)
  275.  
  276. ;-----------------------------------------------
  277. ; Installation Section
  278. ;-----------------------------------------------
  279.  
  280. installadapter = +
  281. ;
  282. ;   First, check whether the same version of the software exists
  283. ;
  284.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  285.  
  286.     Ifstr $(KeyProduct) != $(KeyNull)
  287.     ;
  288.     ; Same version already existed in the local machine
  289.     ; Popup the dialog and ask the user whether he wants to continue
  290.     ;
  291.     CloseRegKey $(KeyProduct)
  292.  
  293.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  294.        ;
  295.        ; Cannot Install the same software again
  296.        ;
  297.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  298.            $(ProductVersion)
  299.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  300.            goto ShellCodeError
  301.        endif
  302.  
  303.        goto end
  304.     else
  305.        ;
  306.        ; Add a new adapter card?
  307.        ;
  308.        Shell $(UtilityInf), CardExistedDlg
  309.  
  310.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  311.            goto ShellCodeError
  312.        endif
  313.  
  314.        ifstr(i) $($R1) != "OK"
  315.            goto end
  316.        endif
  317.        set OldVersionExisted = $(TRUE)
  318.     endif
  319.     endif
  320.  
  321. ;
  322. ;  dll load addition
  323. ;
  324.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  325.  
  326.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.     Goto ShellCodeError
  328.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  329.     Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  330.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  331.         goto ShellCodeError
  332.     endif
  333.     set Error = $($R0)
  334.     Goto fatal
  335.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  336.     Goto successful
  337.     Endif
  338.  
  339.     Set SrcDir = $($R1)
  340.  
  341.     SetHelpFile "E22.hlp" 0 0
  342.  
  343.     install "Install-Dll"
  344.  
  345.     goto adaptersetup
  346.  
  347. ;-----------------------------------------------
  348. ; Configuration Section
  349. ;-----------------------------------------------
  350. ;
  351. ;   Get the current values of all the parameters
  352. ;
  353. configureadapter = +
  354.     Ifstr $(KeyProduct) == $(KeyNull)
  355.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  356.     Ifstr $(KeyProduct) == $(KeyNull)
  357.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  358.         goto fatalregistry
  359.     Endif
  360.     Endif
  361.  
  362.     ;
  363.     ; Get the other parameters;  they're attached to the service parameters key
  364.     ;
  365.     Shell $(UtilityInf) FindService, $(KeyProduct)
  366.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  367.     Goto ShellCodeError
  368.     Endif
  369.     Ifstr(i) $($R0) != NO_ERROR
  370.     Goto fatalregistry
  371.     endif
  372.  
  373.     Set KeyParameters = $($R2)
  374.  
  375.     ;
  376.     ;  We don't need the services key, so close it.
  377.     ;
  378.     CloseRegKey $($R1)
  379.  
  380.     Ifstr $(KeyParameters) == $(KeyNull)
  381.     set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  382.     goto fatalregistry
  383.     endif
  384.  
  385.     set OldVersionExisted = $(TRUE)
  386.  
  387.     set ValueName = ""
  388.     set ValueData = ""
  389.     set ValueStr  = ""
  390.     set ValueList = {}
  391.  
  392.  
  393.     ;
  394.     ; Get the old values
  395.     ;
  396.     EnumRegValue $(KeyParameters) ValueList
  397.  
  398.     ForListDo $(ValueList)
  399.     set ValueItem = $($)
  400.     set ValueName = *($(ValueItem),1)
  401.     set ValueData = *($(ValueItem),4)
  402.     ifstr(i) $(ValueName) == "IoAddress"
  403.         set IOBaseAddrIndex1 = $(ValueData)
  404.     else-ifstr(i) $(ValueName) == "IoAddress2"
  405.         set IOBaseAddrIndex2 = $(ValueData)
  406.     ;LRW else-ifstr(i) $(ValueName) == "DMAChannel"
  407.     ;LRW    set DMAIndex = $(ValueData)
  408.     else-ifstr(i) $(ValueName) == "NetworkAddress"
  409.         set NetworkAddress = $(ValueData)
  410.     endif
  411.  
  412.     EndForListDo
  413.  
  414.     set IOBaseAddrValue1 = *($(IOBaseAddrList1), ~($(IOBaseAddrValues1),$(IOBaseAddrIndex1)))
  415.     ifstr(i) $(IOBaseAddrValue1) == ""
  416.     set IOBaseAddrValue1 = *($(IOBaseAddrList1), 6)
  417.     endif
  418.  
  419.     set IOBaseAddrValue2 = *($(IOBaseAddrList2), ~($(IOBaseAddrValues2),$(IOBaseAddrIndex2)))
  420.     ifstr(i) $(IOBaseAddrValue2) == ""
  421.     set IOBaseAddrValue2 = *($(IOBaseAddrList2), 7)
  422.     endif
  423.  
  424. ;LRW    set DMAValue = *($(DMAList), ~($(DMAValues),$(DMAIndex)))
  425. ;LRW    ifstr(i) $(DMAValue) == ""
  426. ;LRW    set DMAValue = *($(DMAList), 1)
  427. ;LRW    endif
  428.  
  429. ;  Save the settings as they were read from the Registry.
  430.  
  431. ;    Shell $(ParamInf) Param_SaveValues
  432. ;    Set CurrParamSettings = $($R0)
  433. ;
  434. ;   Put up the adapter configuration dialog if necessary.
  435. ;
  436. ;   Note that $(CurrParamSettings) has the old known parameter values.
  437. ;
  438. adaptersetup = +
  439.  
  440.  
  441. ;    Shell "" DebugConfiguration "before displaying dialog"
  442.  
  443.     Set from = adapteroptions
  444.  
  445.  
  446. adapteroptions = +
  447.  
  448.  
  449.     LoadLibrary "Disk 1" $(DialogDllName) hLib
  450.  
  451.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  452.  
  453.     ui start "InputDlg"  $(hLib)
  454.  
  455.     set ExitButton      = $(ButtonPressed)
  456.  
  457.     FreeLibrary $(hLib)
  458.  
  459.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  460.         set IOBaseAddrIndex1 = $(Combo1Out)
  461.         set IOBaseAddrIndex2 = $(Combo2Out)
  462.         ;LRW set DMAIndex = $(Combo3Out)
  463.         set NetworkAddress = *($(EditTextOut),1)
  464.         set ExitButton      = $(ButtonPressed)
  465.  
  466.  
  467.         ui pop 1
  468. ;               goto nextstep
  469.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  470.         set CommonStatus = STATUS_USERCANCEL
  471.         ui pop 1
  472.         goto end
  473.     else
  474.         ;
  475.         ; Unknow command
  476.         ;
  477.         ui pop 1
  478.  
  479.         goto end
  480.     endif
  481.  
  482. ;
  483. ;   If installing, go create the necessary keys;
  484. ;   if configuring, they're already open.
  485. ;
  486. skipoptions =+
  487.  
  488.     ifint $(OldVersionExisted) == $(TRUE)
  489.     ifstr(i) $(!NTN_InstallMode) == configure
  490.         goto writeparameters
  491.     endif
  492.     endif
  493.     StartWait
  494.     ;
  495.     ; Add Software Component
  496.     ;
  497.     ifint $(OldVersionExisted) == $(FALSE)
  498.  
  499.     ifstr(i) $(!NTN_InstallMode) == "install"
  500.        Ifstr(i) $(DoCopy) == "YES"
  501.  
  502.           Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  503.  
  504.           Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  505.           Goto ShellCodeError
  506.           Else-Ifstr(i) $($R0) == STATUS_FAILED
  507.           Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  508.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  509.               goto ShellCodeError
  510.           endif
  511.           set Error = $($R0)
  512.           Goto fatal
  513.           Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  514.           Goto successful
  515.           Endif
  516.  
  517.           Set SrcDir = $($R1)
  518.  
  519.        Endif
  520.  
  521.        install "Install-Option"
  522.  
  523.        ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  524.           Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  525.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  526.           goto ShellCodeError
  527.           endif
  528.           set Error = $($R0)
  529.           goto fatal
  530.        endif
  531.     endif
  532.  
  533.  
  534.  
  535.     Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  536.         $(ProductSoftwareName), +
  537.         $(ProductSoftwareName), +
  538.         $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  539.         $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  540.         $(NetEventDLL)
  541.  
  542.     Set OEM_ABANDON_SOFTWARE = TRUE
  543.  
  544.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  545.         goto ShellCodeError
  546.     endif
  547.  
  548.     set RegistryErrorIndex = $($R0)
  549.     set KeyProduct      = $($R1)
  550.     Set SoftNetRulesKey = $($R2)
  551.     CloseRegKey $($R3)
  552.     CloseRegKey $($R4)
  553.     CloseRegKey $($R5)
  554.  
  555.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  556.         EndWait
  557.         CloseRegKey $(KeyProduct)
  558.         CloseRegKey $(SoftNetRulesKey)
  559.         goto fatalregistry
  560.     endif
  561.  
  562.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  563.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  564.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  565.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  566.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  567.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  568.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  569.  
  570.     Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  571.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  572.         goto ShellCodeError
  573.     endif
  574.  
  575.     set RegistryErrorIndex = $($R0)
  576.  
  577.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  578.         EndWait
  579.         CloseRegKey $(KeyProduct)
  580.         CloseRegKey $(SoftNetRulesKey)
  581.         goto fatalregistry
  582.     endif
  583.  
  584.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  585.                 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  586.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  587.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  588.                 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  589.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  590.  
  591.     Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  592.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  593.         goto ShellCodeError
  594.     endif
  595.  
  596.     set RegistryErrorIndex = $($R0)
  597.  
  598.     CloseRegKey $(KeyProduct)
  599.     CloseRegKey $(SoftNetRulesKey)
  600.  
  601.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  602.         EndWait
  603.         goto fatalregistry
  604.     endif
  605.     endif
  606. ;
  607. ;   Create the HARDWARE\Netcard region and its corresponding service
  608. ;
  609.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  610.  
  611.     ifint $($R4) != -1
  612.     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  613.     endif
  614.  
  615.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  616.     goto ShellCodeError
  617.     endif
  618.  
  619.     set RegistryErrorIndex = $($R0)
  620.  
  621.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  622.     EndWait
  623.     CloseRegKey $($R1)
  624.     CloseRegKey $($R2)
  625.     CloseRegKey $($R3)
  626.     goto fatalregistry
  627.     endif
  628.  
  629.     set KeyParameters = $($R3)
  630.     set KeyAdapterRules = $($R2)
  631.     set AdapterNumber = $($R4)
  632.  
  633.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  634.                {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  635.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  636.                {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  637.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  638.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  639.  
  640.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  641.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  642.     goto ShellCodeError
  643.     endif
  644.  
  645.     CloseRegKey $($R1)
  646.  
  647.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  648.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  649.  
  650.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  651.             {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  652.             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  653.             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  654.  
  655.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  656.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  657.     goto ShellCodeError
  658.     endif
  659.  
  660.     set RegistryErrorIndex = $($R0)
  661.  
  662.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  663.     EndWait
  664.     CloseRegKey $(KeyParameters)
  665.     CloseRegKey $(KeyAdapterRules)
  666.     goto fatalregistry
  667.     endif
  668.  
  669.     CloseRegKey $(KeyAdapterRules)
  670.  
  671.     goto writeparameters
  672. ;
  673. ;   REQUIRED:   $(KeyParameters) contains service Parameters key handle
  674. ;
  675. writeparameters = +
  676.     Shell $(UtilityInf), GetBusTypeNum
  677.     set BusTypeNum = $($R1)
  678.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  679.     goto ShellCodeError
  680.     endif
  681.  
  682. ;    Set NewValueList = {{Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(TransceiverValue)},+
  683. ;                       {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  684. ;                       {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  685. ;                       {MemoryMapped,$(NoTitle),$(!REG_VT_DWORD),$(MappedValue)},+
  686. ;                       {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  687. ;                       {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  688. ;
  689.  
  690.     set IOBaseAddrValue1 = *($(IOBaseAddrValues1), ~($(IOBaseAddrList1),$(IOBaseAddrIndex1)))
  691.  
  692.     set IOBaseAddrValue2 = *($(IOBaseAddrValues2), ~($(IOBaseAddrList2),$(IOBaseAddrIndex2)))
  693.  
  694. ;LRW    set DMAValue = *($(DMAValues), ~($(DMAList),$(DMAIndex)))
  695.  
  696.     set NetworkAddress = *($(EditTextOut),1)
  697.  
  698.  
  699.     set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),0},+
  700.         {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  701.         {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  702.         {IoAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue1)},+
  703.         {IoAddress2,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue2)},+
  704.         {DMAChannel,$(NoTitle),$(!REG_VT_DWORD),$(DMAValue)},+
  705.         {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)}}
  706.  
  707.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  708.  
  709.     CloseRegKey $(KeyParameters)
  710.  
  711.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  712.     goto ShellCodeError
  713.     endif
  714.  
  715.     set RegistryErrorIndex = $($R0)
  716.  
  717.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  718.     goto fatalregistry
  719.     endif
  720.  
  721.     EndWait
  722.  
  723.     goto successful
  724.  
  725. ;-----------------------------------------------
  726. ; Binding section
  727. ;-----------------------------------------------
  728. bindingadapter =+
  729.     set Error = "Binding: Sorry, not yet implemented."
  730.     goto fatal
  731.  
  732. ;-----------------------------------------------
  733. ; Removeadapter section
  734. ;-----------------------------------------------
  735.  
  736. removeadapter = +
  737.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  738.     ; Remove Software Component
  739.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  740.         $(ProductSoftwareName)
  741.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  742.         goto ShellCodeError
  743.     endif
  744.  
  745.     set RegistryErrorIndex = $($R0)
  746.  
  747.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  748.         goto fatalregistry
  749.     endif
  750.     else
  751.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  752.         $(ProductSoftwareName), $(!NTN_RegBase)
  753.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  754.         goto ShellCodeError
  755.     endif
  756.  
  757.     set RegistryErrorIndex = $($R0)
  758.  
  759.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  760.         goto fatalregistry
  761.     endif
  762.     endif
  763.  
  764.     goto end
  765.  
  766. ;-----------------------------------------------
  767. ; Upgrade Software section
  768. ;-----------------------------------------------
  769.  
  770. UpgradeSoftware = +
  771.  
  772.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  773.     ; Upgrade software component
  774.     ;
  775.     ; see whether the same version exist or not
  776.     ;
  777.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  778.  
  779.     Ifstr $(KeyProduct) != $(KeyNull)
  780.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  781.         set Version = *($(VersionInfo), 4)
  782.  
  783.         ;
  784.         ; Update the binaries
  785.         ;
  786.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  787.  
  788.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  789.         goto ShellCodeError
  790.         endif
  791.  
  792.         set !UG_Filename = $($R0)
  793.  
  794.         ifstr(i) $(!UG_Filename) != ""
  795.         install "Install-Update"
  796.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  797.             goto fatal
  798.         endif
  799.         endif
  800.  
  801.         ; Upgrade the version number
  802.         ;
  803.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  804.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  805.  
  806.         ;
  807.         ; do nothing for update
  808.         ;
  809.         ifint $(Version) != $(ProductVersion)
  810.            ;
  811.            ; If the major version number is not the same,
  812.            ; it is major upgrade. So let Upgrade the product
  813.            ;
  814.            ;
  815.            ; make other upgrade change if necessary
  816.            ;
  817.         endif
  818.         CloseRegKey $(KeyProduct)
  819.     else
  820.         ;
  821.         ; Cannot Open software key, goto ERROR
  822.         ;
  823.         goto fatalregistry
  824.     endif
  825.     else
  826.     ;
  827.     ; upgrade/update hardware component
  828.     ; There is no different between upgrade and update for hardware
  829.     ; component
  830.     ;
  831.     ; 1. Get the Service Name
  832.     ; 2. Change the NetRule section if necessary
  833.     ;
  834.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  835.           $(MAXIMUM_ALLOWED) NetworkCardKey
  836.     Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  837.         ;
  838.         ; Get Service name
  839.         ;
  840.         GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  841.         set ServiceName = *($(ServiceNameInfo), 4)
  842.  
  843.         ;
  844.         ; Change the NetRule if necessary
  845.         ;
  846.         OpenRegKey $(NetworkCardKey) "" "NetRules" +
  847.         $(MAXIMUM_ALLOWED) NetRuleKey
  848.         Ifstr(i) $(NetRuleKey) != $(KeyNull)
  849.         ;
  850.         ; Make the change....
  851.         ;
  852.         else
  853.         ;
  854.         ; Error, cannot open net rules key
  855.         ;
  856.         goto fatalregistry
  857.         endif
  858.  
  859.         CloseRegKey $(NetRules)
  860.         CloseRegKey $(NetworkCardKey)
  861.     else
  862.         ;
  863.         ; Error, cannot open network card key
  864.         ;
  865.         goto fatalregistry
  866.     endif
  867.     ;
  868.     ; 3. Change the service section of the hardware. i.e.,
  869.     ;    ParameterName change, value change, etc.
  870.     ;
  871.     OpenRegKey $(!REG_H_LOCAL) "" +
  872.           $(!NTN_ServiceBase)"\"$(ServiceName) +
  873.           $(MAXIMUM_ALLOWED) ServiceKey
  874.  
  875.     Ifstr(i) $(ServiceKey) != $(KeyNull)
  876.         ;
  877.         ; Get the ServiceKey to change the Start value
  878.         ; or Type value. Or open Parameters key to
  879.         ; change the hardware parameters if necessary.
  880.         ;
  881.         CloseRegKey $(ServiceKey)
  882.     else
  883.         ;
  884.         ; Error, cannot open network card key
  885.         ;
  886.         goto fatalregistry
  887.     endif
  888.     endif
  889.  
  890.     goto end
  891.     ;
  892.     ; End of Upgrade Software
  893.     ;
  894.  
  895. ;
  896. ;  Escape hatches
  897. ;
  898. successful = +
  899.     goto end
  900.  
  901. abandon = +
  902.     ForListDo $(OEM_ABANDON_OPTIONS)
  903.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  904.         $(ProductSoftwareName), $($)
  905.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  906.         goto ShellCodeError
  907.     endif
  908.  
  909.     set RegistryErrorIndex = $($R0)
  910.  
  911.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  912.         goto fatalregistry
  913.     endif
  914.     EndForListDo
  915.  
  916.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  917.     ; Remove Software Component
  918.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  919.         $(ProductSoftwareName), FALSE
  920.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  921.         goto ShellCodeError
  922.     endif
  923.  
  924.     set RegistryErrorIndex = $($R0)
  925.  
  926.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  927.         goto fatalregistry
  928.     endif
  929.     endif
  930.  
  931.     goto end
  932.  
  933. ;
  934. ; warning display
  935. ;
  936. warning = +
  937.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  938.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  939.     goto ShellCodeError
  940.     endif
  941.     ifstr(i) $($R1) == "OK"
  942.     goto $(to)
  943.     else-ifstr(i) $($R1) == "CANCEL"
  944.     goto $(from)
  945.     else
  946.     goto "end"
  947.     endif
  948. ;
  949. ; non fatal error display
  950. ;
  951. nonfatalinfo = +
  952.     Set Severity = STATUS
  953.     Set CommonStatus = STATUS_USERCANCEL
  954.     goto nonfatalmsg
  955. nonfatal = +
  956.     Set Severity = NONFATAL
  957.     goto nonfatalmsg
  958. nonfatalmsg = +
  959.     ifstr(i) $(Error) == ""
  960.     Set Severity = NONFATAL
  961.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  962.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  963.         goto ShellCodeError
  964.     endif
  965.     set Error = $($R0)
  966.     endif
  967.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  968.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  969.     goto ShellCodeError
  970.     endif
  971.     ifstr(i) $($R1) == "OK"
  972.     goto $(from)
  973.     else
  974.     goto "end"
  975.     endif
  976.  
  977. ;
  978. ;  Registry is broken
  979. ;
  980. fatalregistry = +
  981.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  982.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  983.     goto ShellCodeError
  984.     endif
  985.     set Error = $($R0)
  986.     goto fatal
  987. ;
  988. ;  Netcard detection failure
  989. ;
  990. fataldetect = +
  991.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  992.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  993.     goto ShellCodeError
  994.     endif
  995.     set Error = $($R0)
  996.     Goto fatal
  997. ;
  998. ; fatal error display
  999. ;
  1000. fatal = +
  1001.     ifstr(i) $(Error) == ""
  1002.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1003.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1004.         goto ShellCodeError
  1005.     endif
  1006.     set Error = $($R0)
  1007.     endif
  1008.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1009.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1010.     goto ShellCodeError
  1011.     endif
  1012.  
  1013.     goto setfailed
  1014.  
  1015. ;
  1016. ;  Shelling error
  1017. ;
  1018. ShellCodeError = +
  1019.     set DlgType      = "MessageBox"
  1020.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  1021.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  1022.     set STF_MB_TYPE  = 1
  1023.     set STF_MB_ICON  = 3
  1024.     set STF_MB_DEF   = 1
  1025.     ui start "Error Message"
  1026.     goto setfailed
  1027.  
  1028. setfailed = +
  1029.     set CommonStatus = STATUS_FAILED
  1030.     ;
  1031.     ; if OEM_ABANDON_ON == TRUE, then remove the registry entries
  1032.     ;
  1033.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  1034.     set OEM_ABANDON_ON = FALSE
  1035.     goto abandon
  1036.     endif
  1037.     goto end
  1038.  
  1039. end = +
  1040.     goto term
  1041.  
  1042. term = +
  1043.  
  1044.     Return $(CommonStatus)
  1045.  
  1046. [DebugConfiguration]
  1047.  
  1048.     Set InfName = "OEMsetup.INF"
  1049.  
  1050.     return
  1051.  
  1052.  
  1053. ;***************************************************************
  1054. ;  INSTALL SECTIONS
  1055. ;***************************************************************
  1056. [Install-Option]
  1057.     set STF_VITAL = ""
  1058.  
  1059.     ifstr(i) $(AddCopy) == "YES"
  1060.  
  1061.     ;
  1062.     ; Add the files to the copy list
  1063.     ;
  1064.     ;  BUGBUG: eliminate the "nt2" in the next line when Sunil fixes
  1065.     ;      the other INF files
  1066.     ;
  1067.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1068.  
  1069.     endif
  1070.  
  1071.     ifstr(i) $(DoCopy) == "YES"
  1072.  
  1073.        ;
  1074.        ; Copy files in the copy list
  1075.        ;
  1076.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1077.        CopyFilesInCopyList
  1078.  
  1079.     endif
  1080.  
  1081.     Exit
  1082.  
  1083. [Install-Update]
  1084.    set STF_VITAL        = ""
  1085.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1086.    ;set STF_VERSION     = "YES"
  1087.  
  1088.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1089.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1090.  
  1091.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1092.    CopyFilesInCopyList
  1093.  
  1094.    exit
  1095.  
  1096. [Install-Dll]
  1097.    set STF_VITAL        = ""
  1098.    AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1099.    CopyFilesInCopyList
  1100.    exit
  1101.  
  1102. [Source Media Descriptions]
  1103.     1  = "Windows NT Setup Disk #1"
  1104.     2  = "Windows NT Setup CD-ROM Disk"
  1105.     5  = "Cabletron Drivers Disk"
  1106.     99  = "LMHOST disk"
  1107.  
  1108. [ProductType]
  1109. STF_PRODUCT  = Winnt
  1110. STF_PLATFORM = I386
  1111.  
  1112. [Files-Inf]
  1113. 5,      oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  1114.  
  1115. [Files-E22XX]
  1116. 5, E22N3.SYS , SIZE=88888
  1117.  
  1118. [Files-Dll]
  1119. 5, ctrondlg.dll,  SIZE=999
  1120. 5, E22.hlp, SIZE=9999
  1121.  
  1122. [LanguagesSupported]
  1123.     ENG
  1124.  
  1125. [OptionsTextENG]
  1126.     E22XX     = "Cabletron E22XX Ethernet (9000839) Adapter"
  1127.  
  1128. [FileConstantsENG]
  1129. ProCaption   = "Windows NT Setup"
  1130. ProCancel    = "Cancel"
  1131. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  1132.            "Are you sure you want to cancel copying files?"
  1133. ProCancelCap = "Network Setup Message"
  1134. ProText1     = "Copying:"
  1135. ProText2     = "To:"
  1136.  
  1137. FunctionTitle   = $(GenericAdapterName)" Card Setup"$(GenericInfVersion)
  1138.  
  1139. ProductSoftwareDescription = $(GenericDriverName)
  1140. ProductHardwareDescription = $(GenericAdapterName)
  1141.  
  1142. ProductSoftwareTitle =       $(GenericDriverName)
  1143. ProductHardwareE22XXTitle =       $(GenericAdapterName)
  1144.  
  1145. DialogDllName   = "ctrondlg.dll"
  1146.  
  1147. IOBaseAddrList1 = ^(IOBaseAddrChoices, 1)
  1148. IOBaseAddrValues1 = ^(IOBaseAddrChoices, 2)
  1149.  
  1150. IOBaseAddrList2 = ^(IOBaseAddrChoices, 1)
  1151. IOBaseAddrValues2 = ^(IOBaseAddrChoices, 2)
  1152.  
  1153. ;LRW DMAList = ^(DMAChoices, 1)
  1154. ;LRW DMAValues = ^(DMAChoices, 2)
  1155.  
  1156. [DialogConstantsENG]
  1157. Help        = "&Help"
  1158. Exit        = "Cancel"
  1159. OK          = "OK"
  1160. HelpContext = 0
  1161. Continue    = "Continue"
  1162. Cancel      = "Cancel"
  1163.  
  1164. [FileDependentDlgENG]
  1165.  
  1166. DlgText = "Please select values for the following fields:"
  1167.  
  1168. DlgType = "Combination"
  1169. DlgTemplate = "E22XX_DUAL"
  1170. Caption = $(FunctionTitle)
  1171.  
  1172. CBOptionsGreyed = {}
  1173. NotifyFields = {NO, NO}
  1174. HelpContext = 0
  1175.  
  1176. Edit1Label = "Alt Network &Address:"
  1177. EditTextLim = 17
  1178. EditTextIn = $(NetworkAddress)
  1179.  
  1180. Combo1Label = "I/O Port&1:"
  1181. Combo2Label = "I/O Port&2:"
  1182. ;LRW Combo3Label = "&DMA Channel:"
  1183.  
  1184. Combo1List = $(IOBaseAddrList1)
  1185. Combo1Out  = $(IOBaseAddrValue1)
  1186.  
  1187. Combo2List = $(IOBaseAddrList2)
  1188. Combo2Out  = $(IOBaseAddrValue2)
  1189.  
  1190. ;LRW Combo3List = $(DMAList)
  1191. ;LRW Combo3Out = $(DMAValue)
  1192.  
  1193. ;LRW ComboListItemsIn  = {Combo1List, Combo2List, Combo3List}
  1194. ComboListItemsIn  = {Combo1List,Combo2List}
  1195.  
  1196. ;LRW ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
  1197. ComboListItemsOut = {Combo1Out, Combo2Out}
  1198.  
  1199. ;EditTextIn = {"",""}
  1200.  
  1201. ;EditTextLim = {"",""}
  1202.  
  1203. [IOBaseAddrChoices]
  1204. IOBase_1  = "0x200",512
  1205. IOBase_2  = "0x220",544
  1206. IOBase_3  = "0x240",576
  1207. IOBase_4  = "0x260",608
  1208. IOBase_5  = "0x280",640
  1209. IOBase_6  = "0x2A0",672
  1210. IOBase_7  = "0x2C0",704
  1211. IOBase_8  = "0x2E0",736
  1212. IOBase_9  = "0x300",768
  1213. IOBase_10  = "0x320",800
  1214. IOBase_11  = "0x340",832
  1215. IOBase_12  = "0x360",864
  1216. IOBase_13  = "0x380",896
  1217. IOBase_14  = "0x3A0",928
  1218. IOBase_15  = "0x3C0",960
  1219.  
  1220. [DMAChoices]
  1221. DMA_1 = "5",5
  1222. DMA_2 = "6",6
  1223. DMA_3 = "7",7
  1224. DMA_4 = "3",3
  1225.